/*
 *************************************************************************
 *西瑞克斯研发管理系统
 *版 本: 1.0   
 *日 期：02/15/2012    
 *作 者： 王浩 QQ：873987060   
 *************************************************************************   
 */

package com.application.yfoutsourcecontarct.struts.form;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import java.util.List;
import com.manager.commons.StringUtil;
import com.application.yfoutsourcecontarct.entity.YfOutsourceContract;
import java.util.Date;

/**
 * 
 * Description: YfOutsourceContractForm Struts Action Form<br />
 * 
 * Version:V0.1<br />
 * 
 * Author: 王浩 QQ：873987060 <br />
 * 
 * History: <br />
 * 
 * 02/15/2012 .
 * 
 */
public class YfOutsourceContractForm extends ActionForm {

	/** serialVersionUID */
	protected static final long serialVersionUID = -1L;

	public YfOutsourceContractForm() {

	}

	private String id;

	private String contractName;

	private String outsourceNo;

	private String projectNo;

	private String assumeUnit;

	private Date startdate;

	private Date enddate;

	private Float outFee;

	private String payType;

	private Long auditStatus;

	private String processId;

	private String operateid;

	private Date createDate;

	private String ids;

	private String projectName;

	private String projectOrg;

	private Long projectType;

	private String examineFlag;

	private String examineOption;

	private String workItemId;

	private String startdateStr;
	private String enddateStr;

	/**
	 * @return Returns the Startdate.
	 */
	public String getStartdateStr() {
		String re = "";
		if (this.startdate == null) {
			return re;
		}
		try {
			re = StringUtil.dateToString(this.startdate);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return re;
	}

	/**
	 * @param ${field.propertyName}
	 *            Set the ${field.propertyName}.
	 */
	public void setStartdateStr(String startdateStr) {
		this.startdateStr = startdateStr;
		if (this.startdateStr != null && !"".equals(this.startdateStr)) {
			try {
				this.startdate = StringUtil.stringToDate(this.startdateStr);
			} catch (Exception e) {
				e.printStackTrace();
			}
		}

	}

	/**
	 * @return Returns the Enddate.
	 */
	public String getEnddateStr() {
		String re = "";
		if (this.enddate == null) {
			return re;
		}
		try {
			re = StringUtil.dateToString(this.enddate);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return re;
	}

	/**
	 * @param ${field.propertyName}
	 *            Set the ${field.propertyName}.
	 */
	public void setEnddateStr(String enddateStr) {
		this.enddateStr = enddateStr;
		if (this.enddateStr != null && !"".equals(this.enddateStr)) {
			try {
				this.enddate = StringUtil.stringToDate(this.enddateStr);
			} catch (Exception e) {
				e.printStackTrace();
			}
		}

	}

	/**
	 * @return Returns the Id
	 */
	public String getId() {
		return this.id;
	}

	/**
	 * @param id
	 *            Set the id.
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * @return Returns the ContractName
	 */
	public String getContractName() {
		return this.contractName;
	}

	/**
	 * @param contractName
	 *            Set the contractName.
	 */
	public void setContractName(String contractName) {
		this.contractName = contractName;
	}

	/**
	 * @return Returns the OutsourceNo
	 */
	public String getOutsourceNo() {
		return this.outsourceNo;
	}

	/**
	 * @param outsourceNo
	 *            Set the outsourceNo.
	 */
	public void setOutsourceNo(String outsourceNo) {
		this.outsourceNo = outsourceNo;
	}

	/**
	 * @return Returns the ProjectNo
	 */
	public String getProjectNo() {
		return this.projectNo;
	}

	/**
	 * @param projectNo
	 *            Set the projectNo.
	 */
	public void setProjectNo(String projectNo) {
		this.projectNo = projectNo;
	}

	/**
	 * @return Returns the AssumeUnit
	 */
	public String getAssumeUnit() {
		return this.assumeUnit;
	}

	/**
	 * @param assumeUnit
	 *            Set the assumeUnit.
	 */
	public void setAssumeUnit(String assumeUnit) {
		this.assumeUnit = assumeUnit;
	}

	/**
	 * @return Returns the Startdate
	 */
	public Date getStartdate() {
		return this.startdate;
	}

	/**
	 * @param startdate
	 *            Set the startdate.
	 */
	public void setStartdate(Date startdate) {
		this.startdate = startdate;
	}

	/**
	 * @return Returns the Enddate
	 */
	public Date getEnddate() {
		return this.enddate;
	}

	/**
	 * @param enddate
	 *            Set the enddate.
	 */
	public void setEnddate(Date enddate) {
		this.enddate = enddate;
	}

	/**
	 * @return Returns the OutFee
	 */
	public Float getOutFee() {
		return this.outFee;
	}

	/**
	 * @param outFee
	 *            Set the outFee.
	 */
	public void setOutFee(Float outFee) {
		this.outFee = outFee;
	}

	/**
	 * @return Returns the PayType
	 */
	public String getPayType() {
		return this.payType;
	}

	/**
	 * @param payType
	 *            Set the payType.
	 */
	public void setPayType(String payType) {
		this.payType = payType;
	}

	/**
	 * @return Returns the AuditStatus
	 */
	public Long getAuditStatus() {
		return this.auditStatus;
	}

	/**
	 * @param auditStatus
	 *            Set the auditStatus.
	 */
	public void setAuditStatus(Long auditStatus) {
		this.auditStatus = auditStatus;
	}

	/**
	 * @return Returns the ProcessId
	 */
	public String getProcessId() {
		return this.processId;
	}

	/**
	 * @param processId
	 *            Set the processId.
	 */
	public void setProcessId(String processId) {
		this.processId = processId;
	}

	/**
	 * @return Returns the Operateid
	 */
	public String getOperateid() {
		return this.operateid;
	}

	/**
	 * @param operateid
	 *            Set the operateid.
	 */
	public void setOperateid(String operateid) {
		this.operateid = operateid;
	}

	/**
	 * @return Returns the CreateDate
	 */
	public Date getCreateDate() {
		return this.createDate;
	}

	/**
	 * @param createDate
	 *            Set the createDate.
	 */
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	private List<YfOutsourceContract> yfOutsourceContractList;

	/**
	 * @return the yfoutsourcecontractformList
	 */
	public List<YfOutsourceContract> getYfOutsourceContractList() {
		return yfOutsourceContractList;
	}

	/**
	 * @param yfOutsourceContractList
	 *            the yfoutsourcecontractformList to set
	 */
	public void setYfOutsourceContractList(
			List<YfOutsourceContract> yfOutsourceContractList) {
		this.yfOutsourceContractList = yfOutsourceContractList;
	}

	public String getIds() {
		return ids;
	}

	public void setIds(String ids) {
		this.ids = ids;
	}

	/**
	 * Method validate
	 * 
	 * @param mapping
	 * @param request
	 * @return ActionErrors
	 */
	public ActionErrors validate(ActionMapping mapping,
			HttpServletRequest request) {
		// TODO Auto-generated method stub
		return null;
	}

	/**
	 * Method reset
	 * 
	 * @param mapping
	 * @param request
	 */
	public void reset(ActionMapping mapping, HttpServletRequest request) {
		// TODO Auto-generated method stub
	}

	public String toString() {
		return ReflectionToStringBuilder.toString(this,
				ToStringStyle.MULTI_LINE_STYLE);
	}

	public String getProjectName() {
		return projectName;
	}

	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}

	public String getProjectOrg() {
		return projectOrg;
	}

	public void setProjectOrg(String projectOrg) {
		this.projectOrg = projectOrg;
	}

	public Long getProjectType() {
		return projectType;
	}

	public void setProjectType(Long projectType) {
		this.projectType = projectType;
	}

	public String getExamineFlag() {
		return examineFlag;
	}

	public void setExamineFlag(String examineFlag) {
		this.examineFlag = examineFlag;
	}

	public String getExamineOption() {
		return examineOption;
	}

	public void setExamineOption(String examineOption) {
		this.examineOption = examineOption;
	}

	public String getWorkItemId() {
		return workItemId;
	}

	public void setWorkItemId(String workItemId) {
		this.workItemId = workItemId;
	}
}
